package nl.infodation.emr.pricingservice.rulegeneration;

import java.util.List;

import nl.infodation.emr.pricingservice.session.SessionListener;

import org.eclipse.emf.mwe2.language.mwe2.Module;
import org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner;

public class MyRunner extends Mwe2Runner {

	@Override
	protected Module findModule(String moduleName) {
		Module mod = super.findModule(moduleName);
		return mod;
	}
	
	@Override
	protected List<String> getPathes() {
		List<String> paths = super.getPathes();
		// add the contextpath (absolute path to war or top-level directory to allow searching for 
		// workflowfiles and templates
		String contextPath = SessionListener.getContextPath();
		paths.add(contextPath);
		return paths;
	};
	
}
